<template>
    <div>
      <p :class="{str:bool}">你好我是吴亦凡</p>
    <p :style="{backgroundColor:'red'}">hong</p>
    </div>
  </template>
  
  <script>
  export default {
    data(){
      return{
       bool:true
      }
    }
  };
  </script>
  
  <style >
    .str{
      color: red;
    }
  </style>